﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>{$sitename} - 新用户注册</title>
{include file="header"/}
</head>
<body>
<!-- // sign-header end -->
<div class="layout" id="sign-content">
  <div class="ui-box ui-qire sign-focus" id="reg-box">
   <div class="logo"><a href="{$siteurl}" title="{$sitename}"></a></div>
    <div class="ui-title fn-clear">
      <span>已有{$sitename}帐号？请<a href="{:zanpian_user_url('user/login/index')}">点击登录</a></span>
      <h2>注册会员</h2>
    </div>
    <div class="ui-cnt fn-clear">
         <form id="regform" method="post" onsubmit="return false;">
         <div class="ui-form sign-primary">
          <div class="ui-form-item fn-clear">
             <p class="prompt">友情提示：必须使用真实邮箱注册，注册后需要激活才能成为{$sitename}会员，您的Email和用户名都可以登录本站！</p>
          </div>
          <div class="ui-form-item fn-clear">
            <label for="email" class="ui-label w100"><strong>Email</strong>地址：</label>
            <input type="text" id="email" name="email" class="ui-input w220" value="">
            <p class="onError ui-message" id="emailTip" style="">你输入的邮箱长度非法,请确认</p>
          </div>
          <div class="ui-form-item fn-clear">
            <label for="username" class="ui-label w100">用户名：</label>
            <input type="text" id="uname" name="username" class="ui-input w220" value="{$nickname}">
            <p class="onError ui-message" id="unameTip" style="">该用户名不可用，请更换用户名</p>
          </div>
          <div class="ui-form-item fn-clear">
            <label for="password" class="ui-label w100">设置密码：</label>
            <input type="password" id="pwd" name="password" maxlength="20" class="ui-input w220" value="">
            <p class="onCorrect ui-message" id="pwdTip" style="">密码输入正确</p>
          </div>
          <div class="ui-form-item fn-clear">
            <label for="verifypass" class="ui-label w100">重复密码：</label>
            <input type="password" id="verifypass" name="verifypass" maxlength="20" class="ui-input w220" value="">
            <p class="onShow ui-message" id="verifypassTip" style="">输再次输入密码</p>
          </div>
           {notempty name="userconfig['user_code']"}
          <div class="ui-form-item fn-clear" id="validate-code">
            <label for="validate" class="ui-label w100">验证码：</label>
            <div class="ui-form-block w120">
              <input type="text" id="validate" name="validate" maxlength="10" class="ui-input w110" value="">
              <p class="validate-code-btn">看不清? <a href="javascript:void()" id="verimgbut">换一张</a></p>
            </div>
            <img src="{:zp_url('user/validate/verify','',false,false)}" id="regverimg" alt="点击图片更换验证码" title="点击图片更换验证码">
            <p class="onShow ui-message" id="validateTip" style="">输入上图字母</p>
          </div>
          {/notempty}
          <div class="ui-form-item ui-form-checkbox fn-clear">
            <label class="ui-label w100">&nbsp;</label>
            <div class="ui-form-block w220">
              <label for="agreement" class="ui-label-checkbox">
                <input type="checkbox" value="" name="agreement" id="agreement" >
                <span style="color: #666;">我已阅读并接受</span>《<a href="{:zanpian_user_url('user/reg/agreement')}" target="_blank">使用协议</a>》 </label>
            </div>
             <p class="onShow ui-message" id="agreementTip" style="">输再次输入密码</p>
          </div>
          <div class="ui-form-item fn-clear">
            <label class="ui-label w100">&nbsp;</label>
            <input type="hidden" name="jump" value="1"/>
            <input type="submit" class="ui-button w220" value="注册会员">
          </div>
        </div>
        <!-- // ui-form#sign-primary end -->
      </form>
       <div id="sign-app">
      	<div class="sign-app-list">
      		<h5>你还可以用以下方式直接登录：</h5>
      		<ul class="item login-list clear blue"> 
	          	   {if condition="(!empty($snsconfig['api_qq_key'])) and (!empty($snsconfig['api_qq_secret']))"}
	      			<li style="margin-right:14px;">
						<a href="{:zanpian_user_url('user/Snslogin/qq')}"></a>
					</li>
	 			{/if} 
	 			{if condition="(!empty($snsconfig['api_weibo_key'])) and (!empty($snsconfig['api_weibo_secret']))"}
      			<li style="background-image:admin_url({$public}user/new/images/weibo_login.gif)">
	                	<a href="{:zanpian_user_url('user/Snslogin/weibo')}"></a>
	               	</li>
	 			{/if}  
			</ul>
      	</div>
      </div>
  <!-- // sign-box#regbox end -->
</div>
<script language="javascript" src="{$apicss}user/new/js/regvaild.js" type="text/javascript"></script>
{include file="footer"/}
<!-- // sign-content end -->
</body>
</html>